/**
 * 图表类型
 *
 * @export
 * @enum {number}
 */
export enum ChartTypes {

  /**
   * 表格
   */
  Table = 1,

  /**
   * 折线图
   */
  Line = 2,

  /**
   * 条形图
   */
  Bar = 3,

  /**
   * 散点图
   */
  Scatter = 4,

  /**
   * 饼图
   */
  Pie = 5,

  /**
   * 地图
   */
  CMap = 7,

  /**
   * 平行坐标图
   */
  Parallel = 8,

  /**
   * 漏斗图
   */
  Funnel = 6,

  /**
   * 桑基图
   */
  Sankey = 9,


  /**
   * 雷达图
   */
  Radar = 10,

  /**
   * 词云图
   */
  WordCloud = 11,

  /**
   * 瀑布图
   */
  Waterfall = 12,

  /**
   * 翻牌器
   */
  Scorecard = 13,

  /**
   * 内嵌网页
   */
  Iframe = 14,

  /**
   * 富文本
   */
  RichText = 15,

  /**
   * 双Y轴
   */
  DoubleYAxis = 16,

  /**
   * 仪表盘
   */
  Gauge = 17,

  /**
   * KPI
   */
  Kpi = 18,

  /**
   * 柱状图
   */
  Column = 19
}

export default ChartTypes

export const LegendColor: Array<string> = [
  '#468CFA',
  '#61DDAA',
  '#65789B',
  '#F6BD16',
  '#7262FD',
  '#78D3F8',
  '#9661BC',
  '#F6903D',
  '#008685',
  '#F08BB4',
  '#BDD2FD',
  '#BDEFDB',
  '#C2C8D5',
  '#FBE5A2',
  '#D3CEFD',
  '#B6E3F5',
  '#D3C6EA',
  '#FFD8B8',
  '#AAD8D8',
  '#FFD6E7',
];
import TableIcon from "@/assets/charts/table_icon.svg";
import LineIcon from "@/assets/charts/line_icon.svg";
import BarIcon from "@/assets/charts/bar_icon.svg";
import PieIcon from "@/assets/charts/pie_icon.svg";
import KpiIcon from "@/assets/charts/kpi_icon.svg";
import ColumnIcon from "@/assets/charts/column_icon.svg";
import GaugeIcon from "@/assets/charts/gauge_icon.svg";
import ScorecardIcon from "@/assets/charts/scorecard_icon.svg";

export const CHART_TYPE_NAMES: any = {
  [ChartTypes.Table]: TableIcon,
  [ChartTypes.Line]: LineIcon,
  [ChartTypes.Bar]: BarIcon,
  [ChartTypes.Pie]: PieIcon,
  [ChartTypes.Kpi]: KpiIcon,
  [ChartTypes.Column]: ColumnIcon,
  [ChartTypes.RichText]: TableIcon,
  [ChartTypes.Gauge]: GaugeIcon,
  [ChartTypes.Scorecard]: ScorecardIcon,
}

